package com.rmondjone.androidcamerademo

import android.app.Application
import com.ant.http.HttpManager
import com.rmondjone.face.HeadInterceptor
import okhttp3.logging.HttpLoggingInterceptor

/**
 * copyright：
 * @author：anthui creation date： .
 * @since: 1.0.0
 * @describe:
 */
class MyApplication : Application() {


    companion object {
        lateinit var application: Application

    }

    override fun onCreate() {
        super.onCreate()
        application = this
        var interceptor = HttpLoggingInterceptor()
        interceptor.level = HttpLoggingInterceptor.Level.BODY
        HttpManager.Builder().setBaseUrl("http://baike.aibangzhu888.com")
                .isDebug(true)
                .proxyEnable(true)
                .addInterceptor(HeadInterceptor())
                .addInterceptor(interceptor)
                .build()
    }
}